package com.alibaba;

import com.netflix.loadbalancer.RandomRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients//省略 value  不会写  反正可以不用写
public class PayStarter {
    public static void main(String[] args) {
        SpringApplication.run(PayStarter.class);
    }

    @Bean
    public RandomRule randomRule(){
        return new RandomRule();
    }
}
